package cn.zhf.shop.mapper;

import cn.zhf.shop.entity.ClassUser;
import cn.zhf.shop.entity.search.ClassUserSearch;import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;import java.util.List;

@Mapper
public interface ClassUserMapper {
    int deleteByPrimaryKey(String id);

    int insert(ClassUser record);

    int insertSelective(ClassUser record);

    ClassUser selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ClassUser record);

    int updateByPrimaryKey(ClassUser record);

    List<ClassUser> selectAll();

    ClassUser selectByOpenId(@Param("openId") String openId);

    int countUser();

    List<ClassUser> selectByOrg(Integer orgId);

    ClassUser selectByIdAndUserPwd(@Param("id") String id, @Param("userPwd") String userPwd);

    int updateUserStatusById(@Param("updatedUserStatus") Integer updatedUserStatus, @Param("id") String id);

    List<ClassUser> selectByIdAndStuIdCardAndStuUserNameAndStuSexAndStuPhoneAndStuAgeAndUserStatus(String str);

    List<ClassUser> selectByStuSex(@Param("stuSex") Integer stuSex);

    List<ClassUser> selectByUserStatus(@Param("userStatus") Integer userStatus);

    List<ClassUser> selectByStuPhoneAndStuIdCardAndStuUserName(@Param("stuPhone") String stuPhone, @Param("stuIdCard") String stuIdCard, @Param("stuUserName") String stuUserName);

    List<ClassUser> selectByStuUserNameAndIdAndStuIdCard(ClassUserSearch classUserSearch);
}